import {combineReducers} from 'redux';
import { SET_BILLING_TYPE, SET_SEARCH_PARAMS, SET_LOAN_PARAMS, SET_BILLING_TAB } from 'actions/billing'
import {cr} from 'share/utils'

export default combineReducers({
  billingType: cr({}, {
    [SET_BILLING_TYPE](state, {billingType}){return billingType}
  }),
  searchBilling: cr({},{
    [SET_SEARCH_PARAMS](state, {searchBilling}){return searchBilling}
  }),
  loanParams: cr({},{
    [SET_LOAN_PARAMS](state,{loanParams}){return loanParams}
  }),
  billingTab: cr('',{
    [SET_BILLING_TAB](state,{billingTab}){return billingTab}
  })
})
